package com.yisu.auction.api.domain.vo.goodsInfoPackageVos;

import org.apache.commons.lang.StringUtils;

import java.util.Date;

/**
 * author: 赵杰
 * Business Description：最后出价记录简化实体
 * createTime：2017/8/31
 */
public class ClosingBidRecordVo {
    private Long id;
    private Long memberId;
    private String nickname;
    private String ico;
    private Long prizeId;
    private Date offerPriceDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getNickname() {
        if (StringUtils.isEmpty(nickname)) {
            return "匿名";
        }
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }

    public Long getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    public Date getOfferPriceDate() {
        return offerPriceDate;
    }

    public void setOfferPriceDate(Date offerPriceDate) {
        this.offerPriceDate = offerPriceDate;
    }
}
